package com.eshipenet.shipnet.equipmentextbuilder

sealed trait EquipmentWithModelAction {
  val id: String
  val modelId: String
}

case class EquipmentWithModelInsert(after: EquipmentWithModel) extends EquipmentWithModelAction {
  override val id: String      = after.equipment.id
  override val modelId: String = after.model.id
}

case class EquipmentWithModelDelete(before: EquipmentWithModel) extends EquipmentWithModelAction {
  override val id: String      = before.equipment.id
  override val modelId: String = before.model.id
}
